<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link rel="stylesheet" type="text/css" href="../../../css/admin.css"/>
</head>
<script src="../../../js/jquery.js"></script>
<script src="../../../js/changebgcolor.js"></script>
<script src="../../../js/calendar.js"></script>

<script src="../js/merchandise_init.js"></script>
<script>
window.onload = function (){
	document.title = '物品信息';
	create_parent_type_list();
}
function selected_items_list(){
	var selected_items_box = document.getElementsByName('selected_items');
	var selected_items_val = new Array();
	var j = 0;
	for(var i=0;i<selected_items_box.length;i++){
		var box_item = selected_items_box[i];
		if(box_item.checked){
			var td_nade = box_item.parentNode.parentNode.childNodes;
			var id = box_item.value;
			var name = td_nade[5].innerHTML;
			var norm = td_nade[9].innerHTML;
			var _unit = td_nade[11].innerHTML;
			selected_items_val[j] = id+'?'+name+'?'+norm+'?'+_unit;
			j++;
		}
	}
	window.returnValue = selected_items_val;
	window.close();
}
function select_all(){
	var is_checked = document.getElementById('select_all').checked;
	var selected_items = document.getElementsByName('selected_items');
	for(var i=0;i<selected_items.length;i++){
		selected_items[i].checked=is_checked;
	}
}
</script>
<body>
<div align="right" style="margin-top:5px; margin-bottom:10px; padding-right:5px;">
    名称&nbsp;<input  id="merchandise_name" type="text" />&nbsp;
    父类&nbsp;<select id="parent_type" ></select>&nbsp;
    类别&nbsp;<select id="merchandise_type" ><option value="1">&nbsp;</option></select>&nbsp;
    <input type="button" style="margin-right:50px;" value="查找" onclick="" />
    <input type="button" value="添加选中物品" class="submit"  onclick="selected_items_list()" style="width:150px;" /> 
</div>
<div align="center">
  <table class="list" border="0" cellspacing="1" width="800"  >
    <thead>
      <tr style="height:15px;">
        <th class="list" width="18" ><input type="checkbox" id="select_all" onclick="select_all()" value="1" /></th>
        <th class="list" width="100">编号</th>
        <th class="list" width="">名称</th>
        <th class="list" width="90">类别</th>
        <th class="list" width="90">规格</th>
        <th class="list" width="45">单位</th>
        <th class="list" width="150">备注</th>
        <th class="list" width="15" >&nbsp;</th>
      </tr>
    </thead>    
    <tbody>
      <tr>
        <td style="padding:0; margin:0;" colspan="8">
        <div style="width:100%; height:500px; overflow-y:scroll; padding:0; margin:0;">
          <table class="list" border="0" cellspacing="1" style="border:0; width:781px; height:100%; "  >
              <tr style="height:15px;" onmouseover="cbgcolor(this,0)" onmouseout="cbgcolor(this,1)">
        		<td class="list" width="18" ><input type="checkbox" name="selected_items" value="1" /></td>
                <td class="list" width="100">000000001</td>
                <td class="list" width="">名称1</td>
                <td class="list" width="90">类别</td>
                <td class="list" width="90">规格1</td>
                <td class="list" width="45">单位1</td>
                <td class="list" width="150">备注</td>
              </tr>
              <tr style="height:15px;" onmouseover="cbgcolor(this,0)" onmouseout="cbgcolor(this,1)">
        		<td class="list" width="15" ><input type="checkbox" name="selected_items" value="2" /></td>
                <td class="list" width="100">000000002</td>
                <td class="list" width="">名称2</td>
                <td class="list" width="90">类别</td>
                <td class="list" width="90">规格2</td>
                <td class="list" width="45">单位2</td>
                <td class="list" width="150">备注</td>
              </tr>
              <tr style="height:15px;" onmouseover="cbgcolor(this,0)" onmouseout="cbgcolor(this,1)">
        		<td class="list" width="15" ><input type="checkbox" name="selected_items" value="2" /></td>
                <td class="list" width="100">000000002</td>
                <td class="list" width="">名称2</td>
                <td class="list" width="90">类别</td>
                <td class="list" width="90">规格2</td>
                <td class="list" width="45">单位2</td>
                <td class="list" width="150">备注</td>
              </tr>
              <tr style="height:15px;" onmouseover="cbgcolor(this,0)" onmouseout="cbgcolor(this,1)">
        		<td class="list" width="15" ><input type="checkbox" name="selected_items" value="2" /></td>
                <td class="list" width="100">000000002</td>
                <td class="list" width="">名称2</td>
                <td class="list" width="90">类别</td>
                <td class="list" width="90">规格2</td>
                <td class="list" width="45">单位2</td>
                <td class="list" width="150">备注</td>
              </tr>
              <tr style="height:15px;" onmouseover="cbgcolor(this,0)" onmouseout="cbgcolor(this,1)">
        		<td class="list" width="15" ><input type="checkbox" name="selected_items" value="2" /></td>
                <td class="list" width="100">000000002</td>
                <td class="list" width="">名称2</td>
                <td class="list" width="90">类别</td>
                <td class="list" width="90">规格2</td>
                <td class="list" width="45">单位2</td>
                <td class="list" width="150">备注</td>
              </tr>
              <tr style="height:15px;" onmouseover="cbgcolor(this,0)" onmouseout="cbgcolor(this,1)">
        		<td class="list" width="15" ><input type="checkbox" name="selected_items" value="2" /></td>
                <td class="list" width="100">000000002</td>
                <td class="list" width="">名称2</td>
                <td class="list" width="90">类别</td>
                <td class="list" width="90">规格2</td>
                <td class="list" width="45">单位2</td>
                <td class="list" width="150">备注</td>
              </tr>
              <tr style="height:15px;" onmouseover="cbgcolor(this,0)" onmouseout="cbgcolor(this,1)">
        		<td class="list" width="15" ><input type="checkbox" name="selected_items" value="2" /></td>
                <td class="list" width="100">000000002</td>
                <td class="list" width="">名称2</td>
                <td class="list" width="90">类别</td>
                <td class="list" width="90">规格2</td>
                <td class="list" width="45">单位2</td>
                <td class="list" width="150">备注</td>
              </tr>
              <tr style="height:15px;" onmouseover="cbgcolor(this,0)" onmouseout="cbgcolor(this,1)">
        		<td class="list" width="15" ><input type="checkbox" name="selected_items" value="2" /></td>
                <td class="list" width="100">000000002</td>
                <td class="list" width="">名称2</td>
                <td class="list" width="90">类别</td>
                <td class="list" width="90">规格2</td>
                <td class="list" width="45">单位2</td>
                <td class="list" width="150">备注</td>
              </tr>
              <tr style="height:15px;" onmouseover="cbgcolor(this,0)" onmouseout="cbgcolor(this,1)">
        		<td class="list" width="15" ><input type="checkbox" name="selected_items" value="2" /></td>
                <td class="list" width="100">000000002</td>
                <td class="list" width="">名称2</td>
                <td class="list" width="90">类别</td>
                <td class="list" width="90">规格2</td>
                <td class="list" width="45">单位2</td>
                <td class="list" width="150">备注</td>
              </tr>
              <tr style="height:15px;" onmouseover="cbgcolor(this,0)" onmouseout="cbgcolor(this,1)">
        		<td class="list" width="15" ><input type="checkbox" name="selected_items" value="2" /></td>
                <td class="list" width="100">000000002</td>
                <td class="list" width="">名称2</td>
                <td class="list" width="90">类别</td>
                <td class="list" width="90">规格2</td>
                <td class="list" width="45">单位2</td>
                <td class="list" width="150">备注</td>
              </tr>
              <tr style="height:15px;" onmouseover="cbgcolor(this,0)" onmouseout="cbgcolor(this,1)">
        		<td class="list" width="15" ><input type="checkbox" name="selected_items" value="2" /></td>
                <td class="list" width="100">000000002</td>
                <td class="list" width="">名称2</td>
                <td class="list" width="90">类别</td>
                <td class="list" width="90">规格2</td>
                <td class="list" width="45">单位2</td>
                <td class="list" width="150">备注</td>
              </tr>
              <tr style="height:15px;" onmouseover="cbgcolor(this,0)" onmouseout="cbgcolor(this,1)">
        		<td class="list" width="15" ><input type="checkbox" name="selected_items" value="2" /></td>
                <td class="list" width="100">000000002</td>
                <td class="list" width="">名称2</td>
                <td class="list" width="90">类别</td>
                <td class="list" width="90">规格2</td>
                <td class="list" width="45">单位2</td>
                <td class="list" width="150">备注</td>
              </tr>
              <tr style="height:15px;" onmouseover="cbgcolor(this,0)" onmouseout="cbgcolor(this,1)">
        		<td class="list" width="15" ><input type="checkbox" name="selected_items" value="2" /></td>
                <td class="list" width="100">000000002</td>
                <td class="list" width="">名称2</td>
                <td class="list" width="90">类别</td>
                <td class="list" width="90">规格2</td>
                <td class="list" width="45">单位2</td>
                <td class="list" width="150">备注</td>
              </tr>
              <tr style="height:15px;" onmouseover="cbgcolor(this,0)" onmouseout="cbgcolor(this,1)">
        		<td class="list" width="15" ><input type="checkbox" name="selected_items" value="2" /></td>
                <td class="list" width="100">000000002</td>
                <td class="list" width="">名称2</td>
                <td class="list" width="90">类别</td>
                <td class="list" width="90">规格2</td>
                <td class="list" width="45">单位2</td>
                <td class="list" width="150">备注</td>
              </tr>
              <tr style="height:15px;" onmouseover="cbgcolor(this,0)" onmouseout="cbgcolor(this,1)">
        		<td class="list" width="15" ><input type="checkbox" name="selected_items" value="2" /></td>
                <td class="list" width="100">000000002</td>
                <td class="list" width="">名称2</td>
                <td class="list" width="90">类别</td>
                <td class="list" width="90">规格2</td>
                <td class="list" width="45">单位2</td>
                <td class="list" width="150">备注</td>
              </tr>
              <tr style="height:15px;" onmouseover="cbgcolor(this,0)" onmouseout="cbgcolor(this,1)">
        		<td class="list" width="15" ><input type="checkbox" name="selected_items" value="2" /></td>
                <td class="list" width="100">000000002</td>
                <td class="list" width="">名称2</td>
                <td class="list" width="90">类别</td>
                <td class="list" width="90">规格2</td>
                <td class="list" width="45">单位2</td>
                <td class="list" width="150">备注</td>
              </tr>
              <tr>
                <td style="border-bottom:0;" class="list" width="15">&nbsp;</td>
                <td style="border-bottom:0;" class="list" width="100">&nbsp;</td>
                <td style="border-bottom:0;" class="list" width="">&nbsp;</td>
                <td style="border-bottom:0;" class="list" width="90">&nbsp;</td>
                <td style="border-bottom:0;" class="list" width="90">&nbsp;</td>
                <td style="border-bottom:0;" class="list" width="45">&nbsp;</td>
                <td style="border-bottom:0;" class="list" width="150">&nbsp;</td>
              </tr>
          </table>
        </div>
        </td>
      </tr>
    </tbody>
  </table>
</div>

</body>
</html>
